<template>
	<view class="service-ad">
		<view class="service">
			<swiper class="swiper" indicator-dots circular autoplay>
				<swiper-item>
					<view class="service_box" @click="$rui.route('/pages/trip/guide/guide')">
						<image class="service_box_img" src="/static/images/service.png" mode="aspectFill"></image>
						<image class="service_box_bg" src="/static/images/guide_bg.jpg" mode=""></image>
						<view class="service_box_info">
							<view class="service_box_info_title">
								草原旅行策划师
							</view>
							<view class="service_box_info_user">
								<view class="service_box_info_user_name">
									覃海
								</view>
								<view class="service_box_info_user_score">
									4.9分
								</view>
							</view>
						</view>
					</view>
				</swiper-item>
				
			</swiper>
		</view>
		<view class="right">
			<view class="ranking" @click="$rui.route('/pages/trip/ranking/ranking')">
				<view class="name">
					<rui-icon icon="deep" size="35" color="9c6600"></rui-icon>
					<text class="text">旅行榜单</text>
					<rui-icon icon="deep" size="35" color="9c6600" custom="transform: rotateY(180deg);"></rui-icon>
				</view>
				<view class="desc">旅行口碑销量排行榜</view>
			</view>
			<view class="custorm" @click="$rui.route('/pages/trip/customed/customed')">
				<image class="custorm-img" src="/static/images/lines.jpg" mode=""></image>
				<!-- <view class="custorm_box">
					<view class="custorm_box_title">
						免费定制旅行方案
					</view>
					<view class="custorm_box_desc">
						— 代订 行·住·玩 省心出行 —
					</view>
				</view>
				<view class="custorm_number">
					15987136050
				</view> -->
			</view>
		</view>
	</view>
</template>

<script setup>


</script>

<style lang="scss" scoped>
	.service-ad {
		display: flex;
		justify-content: space-between;
		margin: 20rpx 20rpx 40rpx;

		.service {
			border-radius: 20rpx;
			background: #fff;
			width: calc(50% - 10rpx);
			height: 420rpx;
			overflow: hidden;
			position: relative;
			.swiper {
				height: 420rpx;
			}
			&_box{
				&_img {
					width: 100%;
					position: relative;
					z-index: 2;
				}
				&_bg {
					position: absolute;
					top: 0;
					left: 0;
					width: 100%;
				}
				
				&_info {
					position: absolute;
					bottom: 20rpx;
					width: calc(100% - 40rpx);
					background: #fff;
					left: 20rpx;
					border-radius: 10rpx;
					overflow: hidden;
					z-index: 3;
					&_title {
						background: var(--color);
						color: #fff;
						padding: 10rpx 15rpx;
					}
				
				
					&_user {
						display: flex;
						justify-content: space-between;
						padding: 20rpx;
				
						&_score {
							// font-size: 32rpx;
							color: var(--color);
						}
				
					}
				}
			}
		

			
		}

		.right {
			width: calc(50% - 10rpx);

			.ranking {
				background: #ffe2cf;
				height: 200rpx;
				margin-bottom: 20rpx;
				border-radius: 20rpx;
				color: #9c6600;
				text-align: center;
				display: flow-root;

				.name {
					margin-top: 50rpx;

					.text {
						font-weight: bold;
						font-size: 40rpx;
						font-family: Times New Roman, Times, serif;
					}
				}

				.desc {
					font-size: 24rpx;
					margin-top: 10rpx;
				}
			}

			.custorm {
				height: 200rpx;
				border-radius: 20rpx;
				text-align: center;
				display: flex;
				align-items: center;
				justify-content: center;
				background: var(--color);
				position: relative;
				overflow: hidden;

				&_number {
					position: absolute;
					right: 10rpx;
					bottom: 10rpx;
					font-size: 20rpx;
					color: rgba(255, 255, 255, .5);
				}

				&_box {
					background: #fff;
					width: 100%;
					padding: 15rpx 0;


					&_title {
						font-size: 36rpx;
						font-weight: bold;
						// color: var(--color);
						font-family: Times New Roman, Times, serif;
					}

					&_desc {
						font-size: 22rpx;
						color: #999;
					}


				}

			}
		}
	}
</style>